package com.tx.springcloud.consumerfeignhystrixdashbord.teleservice;


import com.tx.springcloud.consumerfeignhystrixdashbord.teleservice.impl.HelloFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name="springcloud-producer",fallback= HelloFallBack.class)
public interface HelloRemote {
    @RequestMapping("/hello")
    public String hello(@RequestParam(value = "name") String name);
}
